Re-factoring to CocoonJS Canvas+