var bar = {
"a": function () {
alert("Hello");
}
};
function foo() {
Object.prototype.a = 'Set from prototype';
return function inner() {
alert(bar.a());
}
}
foo()();