Strip js alert code and js redirect