Started Work on HTML Ouput

- Determining what kind of HTML will be exported.
- Made some chanes to how the js functions are. Wrapped into various
methods for easiy testibilty.