Resolve JS hint errors

Minor touch up so it passes validation
Oh yeah and in case of `typeof global !== 'undefined' ? global : window`, that function expression does not seem to be using `global` at all since it check for the modules first.