voting works with javascript