$(function () {
$.get('/your_file.txt', function (data) {
words = data.split('s');
});
});
const extractText = () => {
const regex = /[A-Z/a-z/ /]/g;
const letters = text.match(regex);
const newText = letters.join("");
return newText;
};