Changed all cookies to localStorage