         $scope.invitables()
 
     $scope.invitables = ->
-      _.take _.union($scope.invitableUsers(), 
+      _.take _.union($scope.invitableUsers(),
                      $scope.invitableContacts(),
                      $scope.invitableGroups(),
                      _.compact([$scope.invitableEmail() if $scope.fragmentIsValidEmail()])), 5


    $scope.invitableContacts = ->
      contacts = _.filter CurrentUser.contacts(), (contact) ->
        matchesFragment(contact.name, contact.email) and 
        !existsAlready('contact', 'email', contact.email)

      _.map contacts, (contact) ->


    $scope.invitableUsers = ->
      memberIds = _.uniq _.flatten _.map $scope.availableGroups(), (group) -> group.memberIds()
      memberIds = _.filter memberIds, (memberId) ->
        !_.contains $scope.group.memberIds(), memberId
      users = _.filter Records.users.find(memberIds), (user) ->
        !user.membershipFor($scope.group) and
        matchesFragment(user.searchFragment) and
        !existsAlready('user', 'id', user.id)

      _.map users, (user) ->
