Update setSearchHistory.js