Update resize.js

fixed syntax mistake
Merge pull request #695 from xunicorn/patch-1

Update resize.js