Refactor _.map, simplified variable assignments

As per jdalton's suggestion, this refactor just simplifies the variable assignments of the _.map function.