Simple JavaScript Csv file generator