refactor(dom) setTitle