Modified for search-box in main.js.