fixed the problem with cookies by using localStorage, whoopie