updated voting js