adds AJAX functionality for user search bar