Fix Promise on IE10 when loading code inline via XHR (this is not set to Window)