voting js fixed