Minor changes to AngularJS Controller to test the GET/POST API Calls