Actually Refactoring and restructuring pages and js

changed structure of routes and app, javascript and deleted unneeded files