added js alert