Switch originalIndex storage from IDs to data-originalIndex on both HTML and SVG with setAttributeNS.