adaption to js.Global change
Merge pull request #1 from neelance/patch-2

adaption to js.Global change