$scope.snacks[index].sum_votes = $scope.snacks[index].upvotes - $scope.snacks[index].downvotes;