Search simulation via js