added global each function for loops issue #3
Merge branch 'master' of github.com:eatarandom/capture