GUI-1351
coverted for-loop to angular.forEach. Seems to help, but not conslusive
Merge pull request #13 from eucalyptus/develop

Merge changes from upstream