starting to replace localStorage for angularjs cookieStore