Workaround for CocoonJS bug; context2d.canvas is not available