Replace three more _.each calls.
Declare some vars locally. Sharing them doesn't add any performance, potentially uses more memory (they are not garbage collected after the function has run) and makes the code more difficult to understand.

It also gets rid of a lot of JSHint warnings.
One more _.each removed