canvas.js string code bag fix