Update jsDoc notation and fix bug in eventService