added $scope in library not found error message