use angular cookies system instead of jquery's