refactor(dom) getCurrentName