Set XHR event handlers before .open()
Set XHR event handlers before .open()

While it's not strictly necessary, this order seems to be the
general recommendation in documentations.

sindresorhus/public-ip,sindresorhus/public-ip,sindresorhus/public-ip