Change localstorage declaration