use lodash _.map and _.filter, be friendly with browsers, adds documentation