Don't load jQuery, it's not required to resize the canvas.