Generate package.json from js object written out as json

Fixes #3
Merge pull request #13 from eddiemonge/jsonjson

Generate package.json from js object written out as json