Here is what I have that is not reading the file...

Code:
function readTextFile()  {
    var reader = new FileReader();  
    reader.readAsText("counter.txt");           // Read the file
        var text = reader.result;   // This is the file contents
        alert(text);
}
The alert i get is just "null". Also, it seems to make my page load very slowly. Is there a better script than this?