add some thoughts in canvas.js