Quick Demo of the Fetch Api
let data_url = "data.txt";
fetch(data_url)
.then(function(response){
return response.text()
})
.then(function(text){
console.log(text);
});
console.log("What comes first?");