clientSocket reads some information directly from the DOM - I think mostly due to the fact that the clientGame controller isn't set up to send data back or initiate events on it's own.
clientGame.js is mostly clean now, but generally speaking it shouldn't do any DOM manipulation either.