Update canvas.js

Inserted debugging code