js redirect if possible uid found