Sort out dependencies in package.json