Refactoring - now using require.js - preparing for phaser demo