Update resize.js

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

Update resize.js
Merge branch '2.x' into 2.1