Some code review for the client

Looked at this with Kate today. 

I haven't looked at `game.js` yet. I like the code a lot! Found it really readable.

More thoughts are at https://gist.github.com/jvns/e6593a17130e08f2c135