Update mscorlib.js

In the case of a Web Worker, window is undefined, in which case set window to the Web Worker's 'global scope' self.
Update mscorlib.js

when global is undef, try setting it first to window, then to self (if window is not available)
Merge pull request #293 from kenneyw/patch-1