Working with local storage instead of cookies.