Update canvasResize.js