finished object serialization

clone data object and prune html elements