Fallback to angular $cookies instead of jquery