fixed the autocomplete stop function database query and the results_search.js page