updated poll.js