corrected error syntax error in vote.js