javascript to pull results into searchbox