tory() {
                const historyString = storage.getItem('search_history');
                if (historyString) {
                    try {
                        searchHistory = JSON.parse(historyString);
                    } catch (e) {
                        console.error('Error parsing search history:', e);
                        searchHistory = [];
                    }
                }
            }

            // Save search history to storage
            function saveSearchHistory() {
   