ajax search request working on local