get multi-file reading working with angular via $scope.$apply()