how can i read a plain text file then output it via document.write?