Refactored a cucumber step and added route helper to search's JS