Added JS to delete events