Update amd-window.js