Removed unused arguments and cahnged to angular.each

Cleaned away unused arguments and replaced jquery $.each with
angular.each as proposed by @Problematic in issue #19.