Implementing the localstorage mixin