LocalStorageWrapper = function(name) {
  this.name = name || 'cartodb';
  if(!localStorage.getItem(this.name) && this.isEnabled()) {
    localStorage.setItem(this.name, "{}");
  }
}
Local storage wrapper

 - It should be used within 'cartodb' key, for example:

 var loc_sto = new cdb.common.LocalStorage();
 loc_sto.set({ 'dashboard.order': 'create_at' });
 loc_sto.get('dashboard.order');