Now using event handers instead of callbacks in XHRRequest