Remove explicit jQuery dependency in directive

We have an app with mixed Angular and legacy code; the `$` global isn't a reference to jQuery, so this line breaks in our app. I've replaced it with a call to `angular.forEach` (and swapped the callback signature, per the difference between the two methods).