Updating Document Element to reference DOM definition of element