updated server.js to work with csvtojson v0.3 and higher