Adding different types of storage: localStorage, sessionStorage or memory