adaption to js.Global and js.This changes
Merge pull request #1 from neelance/patch-1

adaption to js.Global and js.This changes