update.php: remove event type 'error' as it's unused
eventsource.js: fixing typos and JSDoc comment