finished javascript tally votes