cleaned up html and js so html a link to pages instead of js dynamically doing it