Make "window" the global scope: window = this
Merge branch 'master' of https://github.com/ngocdaothanh/jsg into gl2