Update json2csv.js

added a Date -test