change the csv code to use column headings instead of numbers.
change the CSV code to use column headers instead of numbers.
refactor shared javascript