modify vote javascript
modify vote methods