work on search js.