Improved Client JS formatting.

Added documentation comments, and changed '==' to '===' where possible.
Also fixed indenting everywhere, and moved CSS to separate file (was in index.html).