.replaceWith now replaces all selected elements.

Currently `.replaceWith` only replaces the last selected element (#368).  This change ensures that all selected elements are replaced like jquery's `.replaceWith`.