Updated voting JS