Dodaj element do innego rodzica

var photo = document.getElementById("photo");
photo.id  = "newId";
document.getElementById("someOtherDiv").appendChild(photo);
Meandering Meerkat