var allText;
var txtFile = new XMLHttpRequest();
txtFile.open("GET", "http://www.andrewadamnewman.com/txt/gather.txt", true);
txtFile.onreadystatechange = function() {
	if (txtFile.readyState === 4) {  // Makes sure the document is ready to parse.
		if (txtFile.status === 200) {  // Makes sure it's found the file.
			allText = txtFile.responseText;
			arrText = allText.split("<div id=\"split\"></div>");
			paragraph1Text = arrText[0];
			paragraph2Text = arrText[1];
			//lines = txtFile.responseText.split("\n"); // Will separate each line into an array
			document.getElementById('gather1content').innerHTML = paragraph1Text;
			document.getElementById('gather2content').innerHTML = paragraph2Text;
		}
	}
}
txtFile.send(null);