Update canvas-input.js