Add entity.js and split out game.js
Merged