change to canvas mode for cocoonjs