Replaced Angular Cookies library with a more powerful library