Js tweaked for logged out state