Fix broken voting in JS

Broken by an accessability fix in b4907fa...