Resolve JS hint errors

Minor touch up so it passes validation
> I wasn't aware of the implications for changes affecting node.js.

Just to clear things up a bit for @pchhetri :

The change did not break Node.js, but it broke browser functionality at least when running with headless PhantomJS browser.

I was looking for an alternative for using `Function('return this')()`, because it is not allowed if Content Security Policy feature is used (unless `unsafe-eval` is enabled):

> When called as a constructor, the function Function must throw a security exception.
http://www.w3.org/TR/CSP/#script-src

What `Function('return this')()` does here is that it just returns a reference to the global scope, in browsers that is `window`.

Since global scope is `window` in browsers, but `global` in Node.js and might be something in other environments, we were discussing what would be the correct way of getting reference to global scope in different environments, e.g. using `this` in the top scope.