fix js for search