Added hook for providing your own module loading function in order to enable the require.js optimizer to work (will not work with dynamic calls to require)