Remove or template as much HTML as possible from JS code
Currently there's lots of HTML in the JS code, adding
lines for chat lines, and the whole channel divs, user list, topic, etc are created in the JS.
Where possible, HTML should be in the HTML file and hidden/shown when necessary. This isn't possible for things that are generated per channel, but these things should be in some form of template and always created in the same way.