const top_element = document.getElementById("top"); const copy = top_element.cloneNode(true); copy.id = "bottom"; top_element.parentNode.appendChild(copy);