inserting DOMElements into DOM by reference