added to remove alerts in js