Update canvasObject.js