I have a code. It loads text from this:

```
<script type="text/mygamelevel" id="level1" src="levels/level1.txt">
        000122341
        124235245
        154456567
</script>

mapa = loadFromFile("level1");

```

And loadFromFile:

```
function loadFromFile(id) {
var level = document.getElementById(id).text;
var lines = level.split("\n");
for (var i = 0; i < lines.length; i++) {
    var line = lines[i];
    if (!line.trim())
        continue;
    var letter = line.charAt(2);
    alert("Second: " + letter + " ");
}
}

```

But it doesn't work :/ Alert in browser is empty.
Why?