javascript fixes to allow logout
force logged in users to home, not index