apply js redirect only if needed