index: use `event` module to listen for XHR events