Construct all HTML and style from JS. Added functionality to write info to ticket page.