Separated search js