Use outerHTML instead of creating a whole new element