init canvasLib.js