improve search js