Displace XMLHttpRequest to record events