modify votes.js
add js logic