// get file contents, store in var str
var x = str.split('\n');
for (var i=0; i<x.length; i++) {
y = x[i].split('\t');
x[i] = y;
}
console.debug(x);
For help on how to get the file contents, you'll need to specify where these files will be located (on the client machine, server, etc.).
If the files are located on the client machine, you might have a rough road ahead of you.
If the files are located on the server, you'll need to do an AJAX request to get the file contents.