require mock_dom_request.js and use it instead.