Fixed voting JS