error('Error parsing annotations:', error);
                    document.getElementById('loading-waiter').style.display = 'none';
                    alert('Failed to parse annotations');
                }
                return;
            }
            tabBtns.forEach(b => b.classList.remove('active'));
            tabContents.forEach(c => c.classList.remove('active'));
            document.querySelector(`.tab-btn[data-tab="${nextTab}"]`).classList.add('active');
            document.getElementById(nextT