I have a function like this:
function checkAvailability() { try { $.ajax({ type: "GET", url: `https://www.example.com/?....`,