Fix ill-defined variable
Repeat: clone node and its descendants
Iterate over objects and give key, val properties