restructuring of js, html and css
cleans it