Update .append, .before, .after, and .html to operate on all elements in a selection.