Update jsonToCsv.js

getting only first line