sorry to add a negative note but
:mad:all told, HTML is supported on about 9/10 devices, and that final ten percent should be converted over the next couple of years to about 2%. :mad:
In my area (and surrounding counties) the library systems used by the most naive users (and savvy testers like me) still uses IE8 on a crippled XP downloaded fresh for each user. Think 1000's of users (make that 10,000's)
What this means to those whose websites are for all and sundry - 2% is a meaningless statistic. The surfer will blame you if it doesn't work.
KNOW your audience!
And this is @ Jan7 2015. Blame the bankers & the recession (make that depression).
what I forgot to point out in the context of the OP was:
what I do to "read a file" (not write) is to construct (from Excel/VBA) a separate .js file that does little else than hold data - like:
var fred=new Array;
var bill=new Array;
fred="blah blah blah";
bill = "ho hum";
works for me on any browser and that file is complex enough to fill 82K with a lexicon. http://stroudvoices.co.uk/search-by-subject
sometimes the simplest solution is the best.