You could return this new _XhrHandler instead of asigning it, see line 53