Refactor ajax search using jquery-$.get method and respond_to JS