Cleaning js alerts