Changed the code making the ajax request.  Also added additional jasmine tests.