refactor js out of html into separate file. remove unused files and folders.