updated js search