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.