Modify the JS function as single ine.
Modify  search JS function as single line.