Using XMLHttpRequest
var r = new XMLHttpRequest();
r.open('GET', 'csv_data.csv');
r.onreadystatechange = function () {
if (r.readyState != 4 || r.status != 200) return;
successFunction(r.responseText);
};
r.send();
Haven’t tested it.
solved How do I convert jQuery AJAX code to vanilla JavaScript? [duplicate]