polling-xhr: fix a comment and remove unneeded `document` reference