Update AngularJS Preference Cookie