simplify convertExonsToEvents
more compliance with Google JS style guide