Edit in JSFiddle

function foo(){
    this.test = "hello scope";
    this.fader = setTimeout( this.bar, 1000 );
}
foo.prototype.bar = function(){
    alert( this.test );
};
var x = new foo();