Replaces cookie store with localStorage