Add JS functions and reformat HTML and CSS files