Bug in comment voting

When user change his mind for voting javascript was failing. If user vote up first, then vote down first, vote count must have been decrease 2. However, in the code it was only increase or decrease 1 always. tried to fixed it.