implementing the ajax test with jasmine done