Update CanvasInput.js