add some usage demo to canvas.js