This is a simple script that will dynamacally read in a *.txt file using JavaScript's "fetch() API".
More information on JS Fetch API (opens in new window)