refactors a couple variables to enhance clarity and jshint passes now

JSHint passes. Cleaned up a couple style errors.

On the server side I renamed
```js
io = require('socket.io').listen(server);
```
to
```js
ioServer = require('socket.io').listen(server);
```
This doesn't really matter as we won't ever be dealing with the `io` variable much, but it helps namespace the socket.io server seperately from the client for clarity.