hacked a solution to cookies with angular