revise poll.js with plugin runtime