ajax: changed from class to object literal and removed baseUrl