added jasmine and 4 tests for ajax calls