eventSettings.html giving me trouble

1) Line 303 it says valEventName is undeclared
2) Not deleting the event when clicking delete event