corrects alert remove js