Del Cookie, now use localStorage, some fixes