JavaScript: Retrieve as a CSV

Return data as a string in CSV format.