Make renderer work in CocoonJS

Currently only the Canvas2D renderer works. It seems there is a bug in
CocoonJS Canvas+ which has to be fixed first.