fix #2
use angular.forEach in lieu of Array.forEach
Merge pull request #3 from CaryLandholt/master

fix #2