Monkey patch for xhr polling support