Game split into modules with require.js