errorShelter.js
function (err) {
		var storage = getStorage();
		if (storage && storage.errors) {
			storage.errors.push(err);
			return localStorage.setItem([config.nameSpace], JSON.stringify(storage));
		}
	}
function (err) {
		var storage = getStorage();
		if (storage && storage.errors) {
			storage.errors.push(err);
			return localStorage.setItem([config.nameSpace], JSON.stringify(storage));
		}
	}
function ( err ) { var storage = getStorage ( ) ; if ( storage && storage . errors ) { storage . errors . push ( err ) ; return localStorage . setItem ( [ config . nameSpace ] , JSON . stringify ( storage ) ) ; } }
JSON.stringify the object and put back in localStorage
JSON . stringify the object and put back in localStorage