Load a csv file in JavaScript and covert it into an array