AJAX search sort of works now