refactor(dom) init