Fix package.json generation: Use correct name and version properties; re...

...move trailing comma