/* template ( function(){ window['NameSpace']={}; window['getElementById']['funName']=funName; function funName(){ } } )(); */ ( function (){ window['m']={}; window['m']['$']=$; window['m']['getElementById']=getElementById; function $(){ alert("m.$"); } function getElementById(){ alert("m.getElementById"); } } )(); ( function(){ window.document['k']={}; window.document['k']['$$']=$$; function $$(){ ff(); } function ff(){ alert("FF"); } } )();