CocoonJS compatibility