Trim and fix package.json