Replacing all children of an HTMLElement?