Keep an array of objects updated against DOM elements.