Combine var declarations
Refactor static_canvas.class.js, canvas_events.mixin.js, canvas.class.js