Create setSearchHistory.js