Update polling.js