Extend the function 'complete' in fake XMLHttpRequest (Listing 13.26)
Support failure callback for poller (Implement Listing 13.28)
Support complete callback for poller (Implement Listing 13.29)