Update canvas.js

Allow use own HTML canvas, by canvas = fx.canvas('canvasid');
<canvas id="canvasid" ....