Fix js redirect