Create beforeSearch.ejs