     return # Make sure CoffeeScript does not return anything
 
 Template.annotationsControl.events
-  'click .add': (e, template) =>
+  'click .add': (e, template) ->
     annotation =
       author:
         _id: Meteor.personId()

  $metaMenus.each (i, metaMenu) =>
    $(metaMenu).css
      zIndex: BASE_Z_INDEX + $metaMenus.length - i

    LocalAnnotations.insert annotation, (error, id) =>
      # Meteor triggers removal if insertion was unsuccessful, so we do not have to do anything
      throw error if error

    return # Make sure CoffeeScript does not return anything

Template.publicationAnnotations.annotations = ->
  LocalAnnotations.find
