Update smart-resize.js