     // Ajax call     $.ajax({       type: "GET",       url: endpointUrl,       dataType: 'json',       async: true,       success: updateData,       error: handleError     });      function updateData(data) {         