doing a angular js controller that reads the contents of the api