breaking down cmxcanvas.js and CmxCanvasClass.js into pieces across CmxView, the router and compiled jade templates