deleteEvent() in event.js is implemented