Load text as a variable

You want to use jQuery’s $.get() method to fetch the file, and the contents will be passed to the success callback function as the first argument.