Change save method

I changed the use of cookies to localstorage