update js redirect