I am populating variables from text files in Javascript like below:
// index.js import text from \'./text.txt\'; // do