Script to convert a table into a CSV file via javascript.