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

This should improve the comment block mentioned in #283.