How to mock HTTP requests using QUnit