Update canvas.js

Quick modif