Try not to use global variables. If you *really* need the global, then put it in `window.G` instead of `window`