Global var's browser equivalant loaded if defined. Node has higher chance to run

Changed 
```
var global = globalResolution
``` 

to

```
if('undefined'!==typeof globalResolution&&globalResolution)global=globalResolution;
```

this is to give the compiled code a higher chance to run in node.js environment without 

`globalResolution is not defined`

errors