Update canvasCtrl.js