Use local storage instead of cookies