working on redirects when not logged in
removing accidentally duplicated functionality
tweaking jshint