Re-writing moduleLoader.js for a smaller footprint.