improves formatting of results objects to work better with angular
switches to angular, but still loading all the data in one go