Update CGCanvas.js