Move the success/failure functions so they're not inline.
Just call them _getCalendarEventsSuccess, _getCalendarEventsFailure
Improves readability and stops the use of variables declared in the outer function.