Update canvas.js