Moved HTML code to js.