update helper.js
refactor resize.js