explicitly pass in window so that module loader works in IE