Setup HTML generation functions in JavaScript.
Some styling added.
HTML structure mostly completed.