Exposes loaded modules as globals.require.modules
Renames exposed require modules to require.cache
Moves require off of the window scope to window.globals so IE 8 doesn't stack overflow