spriter.js modified and simplified for use with CocoonJS.