fixed canvasrenderer crash (js2coffee translation issue)