t = document.getElementById('output');
            output.innerHTML = '';
            
            lines.forEach(line => {
                const div = document.createElement('div');
                div.className = 'output-line output-success';
                div.textContent = line;
                output.appendChild(div);
            });
            
            output.scrollTop = output.scrollHeight;
        }

        function displayError(message) {
            const output = document.getElementById('ou