Changing availabilityApi to availibilityAPI, to make it consistent with nameavailability.js file