Generate package.json for javascript projects

Change-Id: I6e0d25bb45c7b7a95b6ef14344c4c863f5c54adb