Correct the way votes are retrieved from the database by getting the sum of the resulting columns instead of the count. This now accounts correctly for negative votes.
Update regex to correctly capture negative vote counts when updating on the client side.