made preloader, added pixi and p2.js support