fix style and use a local variable for the lodash reference