apply douglas-peucker line simplification to geojson features or feature collections in JS or on the CLI