Logging $scope.groups