Agregar elemento a un padre diferente
var photo = document.getElementById("photo");
photo.id = "newId";
document.getElementById("someOtherDiv").appendChild(photo);
Meandering Meerkat