switch back to lodash methods, jshint fix and comment