Code cleanup and making the HTML be valid HTML

Some basic clean up of the code and starting to better organize things, included but limited to making the HTML be _**VALID**_. Before going any further I would like to purpose that we settle on a Javascript pattern and templating pattern. I personally am very versed in the MVVM Pattern using Knockout and Knockout templates. I'd be happy to start us down this path. we just need to get away from manually crafting HTML in Javascript....