Update resize.js

fixed syntax mistake