Fix alerts so that they actually display

Alerts were not displaying due to a bug in angular.  When a directive includes it's template using the templateUrl property, and also uses ng-repeat on the root element, changes to the observed array are not actually rendered by ng-repeat.  The fix is to wrap the ng-repeat element in a div, or include the template as a string.