js: track votes