Save a DOM to a variable