changes to be JSLint compliant (in progress)
code now consistent with JSHint
significant speedup and bug fix to reading csv of json