cleaned up code in votes.js