Ajax search function updated