Add reduce and trim dependencies to package.json

The code depends on these and component.json is up-to-date, but package.json isn't.