Extending Window To Create A Dynamic Scope Chain For Method Execution In JavaScript