I have really no idea.. But Message could be a javascript array of the lines.
Also, try to change:
code:
var thetxtFile = '';
var Message = '';
var TheFile = 'test';
To:
code:
var thetxtFile = "";
var Message = "";
var TheFile = "test";
Edit: Now when I look at it it might be a unicode problem, but I don't see why, and cannot help you with that sorry.