minor changes to logout js