Cleaned up the Javascript into a navigation object, carousel object and hashManager object