updated the js alert and otherparts