Update and rename amd-window.js to amd-global.js