As described in this post, you can open and read the remote file like this:
Code:
var txtFile = new XMLHttpRequest();
txtFile.open("GET", "http://my.remote.url/myremotefile.txt", true);
txtFile.onreadystatechange = function() {
  if (txtFile.readyState === 4) {  // Makes sure the document is ready to parse.
    if (txtFile.status === 200) {  // Makes sure it's found the file.
      allText = txtFile.responseText;
      lines = txtFile.responseText.split("\n"); // Will separate each line into an array
    }
  }
}
txtFile.send(null);
which will store all of the files contents in the "allText" variable and an array split up line by line in the "lines" array variable. Then you would need to parse that contents for the password to be tested and test it (unless the password stands alone as the entire contents of the file, it which case, your parsing is done already).
Bookmarks