eId() {
            return Date.now() + Math.random().toString(36).substr(2, 9);
        }

        function updateStats() {
            const todos = juris.getState('todos', []);
            const total = todos.length;
            const completed = todos.filter(t => t.completed).length;
            const highPriority = todos.filter(t => t.priority === 'high').length;
            
            juris.setState('stats.total', total);
            juris.setState('stats.completed', completed);
            juris.se