convert iteration to use lodash

This is mainly for convenience and to facilitate IE8 support