Update improvedCanvas.js