     }
     `
 
-module.exports = AppControllerExt
-
+module.exports = AppControllerExt
    $scope.$root.pageid = encodeURIComponent(encodeURIComponent(getParameterByName("url", $scope.$root.pageid)));

    $scope.$root.updateUserList = ->
      # clear the array
      $scope.$root.list_of_users.length = 0

      dupeCheck = []

      if $scope.$root.allPageAnnotations.length > 0
        for entry in $scope.$root.allPageAnnotations
          author = persona.parseAccountID(entry.user)
          parsed = {}
          parsed["author"] = author
          parsed["score"] = getAuthorTotalScore(author)
          if dupeCheck.indexOf(entry.user) == -1
            $scope.$root.list_of_users.push parsed
            dupeCheck.push entry.user

      return $scope.$root.list_of_users

    $scope.$root.allVotes = {}
    getAuthorTotalScore = (author) ->
      author_score = 0.0
      if (session.state.votes != undefined && session.state.votes.length != 0)
        if Object.keys($scope.$root.allVotes).length == 0

class AppControllerExt extends appcontroller
   constructor: (
     $controller,   $document,   $location,   $rootScope,   $route,   $scope,
     $window,   annotationUI,   auth,   drafts,   features, groups, languages,
     identity,   session
   ) ->
    super
