Currently the game states are defined in js/game/game.js and js/game/preloader.js. Plus the GameStates variable is defined inside preloader.js.
To improve readability and make this hierarchy more visible by looking at the files, I'd suggest to...
- move the definition of the
GameStates variable out from js/game/preloader.js and onto a new file called /js/game/GameStates.js
- rename
js/game/preloader.js to js/game/GameStates.Preloader.js
- rename
js/game/game.js to js/game/GameStates.Game.js
I reckon that so many game in the paths can be tedious. I'd go even further and suggest just using States where it says GameStates. What do you think?