Finally got searching to work through AJAX