Updated resize.js to fix directory issue