Fix for Firefox/PhantomJS:

- Fixed the example code trying to modify the XHR response object, which
  would not work in Firefox
- Comment tweaks