Instead of creating these objects in JavaScript you create a model that contains each item's data.

Then use for example a Repeater to create the items visually.

The model can then save and load its state anytime you'd like.

Cheers,
_