js redirect on logout