                element.setAttribute('data-key', item.id || key);
                    element._jurisItemData = { 
                        item: deepClone(item), 
                        index,
                        hash: generateHash(item)
                    };
                }
                
                return element;
            }

            function cleanupNode(element, context) {
                try {
                    // Use the simplified cleanup from 0.91.0
                    if (cont