Using angular cookies to make data persistent