Play nice with Node.js by recognizing its global.

In Node.js, the global scope is not exposed as this, but
as `global` instead. Now the ScalaJS.g value is initialized
correctly to `global` if it exists and if
global.Object === Object