Moved dom defs to DOM.