Return content from DOM helpers. Closes #410

// cc @dfilatov