I have a text file, the contents of which I would like to use as the value of a variable in Javascript. is this possible?

how about importing it as the value of a (invisible) text box and acquiring it this way?

Any ideas or suggestions appreciated as resorting to shockwave seems a bit extravagant.