Fixed typo on closeAlert() function