An extension to localstorage to store objects