Modify jscanvas.js