Get localstorage sort of working