Fix js voting