Updated resize.js for requirejs.