Separate JS from views

- Javascript successfully removed from all pages and organized beautifully.
- Next step will be to clean all of the javascript code up.