poll.js fixed, now work with plugin runtime