Uses jQuery Deferred objects to create JavaScript tests in QUnit and Sinon