final tally_votes JS soln with Eiko and C.J.