writing properties from package.json to text file