removing js alerts