Resolve JS hint errors

Minor touch up so it passes validation
Actually the reason I started looking at this, is that my unit tests started failing in PhantomJS because of `function(){return this;}()` not assigning `window` to `context`, while `Function('return this')()` worked out fine.

But :+1:  for cleanup.