corrected syntax on polls.js