Refactoring mycanvas.js.