Stop using angular-cookies and just use jquery.