          const start = new Date();
            start.setHours(0, 1, 0, 0);
            
            document.getElementById('startTime').value = start.toISOString().slice(0, -1);
            document.getElementById('endTime').value = end.toISOString().slice(0, -1);
        }
        
        function clearFrames() {
            document.getElementById('frames').innerHTML = '';
        }
        
        function appendFrame(data) {
            const container = document.createElement('div');
            co