ajax powered search functionality with autocomplete