Moved DOMHelper into main JS