Linked search call to backend in AJAX