     $toTopButton.addClass('off-canvas')
 , 50
 
-export pluralize = (word, count, showCount=true)->
+export pluralize = (word, count, showCount=true) ->
   if Number(count) isnt 1
     word += "s"
   if showCount then "#{count} #{word}" else word
 
-export formatDateRange = (dateRange, readable)->
+export formatDateRange = (dateRange, readable) ->
   dateRange ?= ''
   start = moment.utc(dateRange.start)
   end = moment.utc(dateRange.end)

        territories[territories.length - 1].territoryEnd = sentEnd
  return territories

export createIncidentReportsFromEnhancements = (enhancements, options)->
  { countAnnotations, acceptByDefault, articleId, publishDate } = options
  if not publishDate
    publishDate = new Date()

  locationAnnotations = features.filter (f) -> f.type == 'location'
  datetimeAnnotations = features.filter (f) -> f.type == 'datetime'
  diseaseAnnotations = features.filter (f) ->
    f.type == 'resolvedKeyword' and f.resolutions.some((r) ->
      r.entity.type == 'disease'
    )
  speciesAnnotations = features.filter (f) ->
    f.type == 'resolvedKeyword' and f.resolutions.some((r) ->
      r.entity.type == 'species'
    )
  if not countAnnotations
