storing DOM elements in objects