clean up poll.js