       maxSubintervalsPerTopLocation = []
       locationToTotals = _.chain(locToSubintervals)
       .pairs()
-      .map ([key, locSubIntervals]) ->
+      .map ([key, locSubIntervals]) =>
         location = locationTree.getLocationById(key)
         groupedLocSubIntervals = _.groupBy(locSubIntervals, 'start')
         maxSubintervals = []

        countryCodeToCount[topLocation.countryCode] = prevTotal + locationToTotals[topLocation.id]

      if (@request.query.activeCases + "").toLowerCase() == "true"
        overallTimeseries = subIntervalsToActiveCases(maxSubintervalsPerTopLocation, dailyDecayRate)
      else
        overallTimeseries = _.chain(maxSubintervalsPerTopLocation)
          .groupBy('end')

    events: events.map (event) =>
      if not event
        return null
      dailyDecayRate = 1.0
      if (@request.query.activeCases + "").toLowerCase() == "true"
        # TODO: look up disease specific stat
        caseLengthDays = 14
        dailyDecayRate = Math.pow(.5, (1 / caseLengthDays))
      baseIncidents = []
      constrainingIncidents = []
      event.incidents.map (incident) ->
