Create smart-resize.js