You can replace the content of the whole loop by just appending to the list. When you append a node already in the DOM, it disappears from the original location. And that's what we want here I think.

`list.appendChild(saved[i]);`