CocoonJS compatibility fix. Screencanvas cleared before painting.

Using screencanvas, the complete screen size must be repainted. This commit detects if you're in CocoonJS running canvas+ and clears the canvas before painting.