ajax search improvement