improve routes/search.js