Added a AngularJS controller for fetching subject and topic arrays