Edit in JSFiddle

function doStuff(b){
  return this.a + b;
}

var myContext = {a: 1};
var result = doStuff.call(myContext, 2);
console.log(result);