js redirect update