modified front end to adapt most pages to HTML+JS

Todo page is still incomplete
none of the backend has been implemented