function getIndex(adr) {
var formData = new FormData();
formData.append('action', 'getindex');
formData.append('address', adr);
return fetch(ajaxurl, {
method: 'POST',
body: formData
}).then(resp => resp.text())
.then(data => data)
}