Correctly count scripts when loading using angular.loader().