dom: create block for common DOM helpers

close #184