pixi.js included. refactoring (part 2 of 3).