Updated loader.js to rename the 'window' parameter to something less dangerous.