LocalStorage API based on Object literals