use js routes for search route