Criar arquivo de texto de String usando JS e html5

Eu quero criar um arquivo de texto de uma string. Atualmente eu estou usando uma função que leva uma matriz e faz em uma seqüência de caracteres, em seguida, usando essa seqüência de caracteres eu quero criar um arquivo de texto local, o usuário faz o download. Eu tentei usar este método

   function createFile(){ //creates a file using the fileLIST list 
    var output= 'Name \t Status\n'+ fileLIST[0][0].name+'\t'+fileLIST[0][1]+'\n';
    var Previous = fileLIST[0];
    for (var i=1; i<fileLIST.length; i++)
        if (fileLIST[i][1] =='none' || fileLIST[i][1] == Previous[1])
            continue
        else {
            Previous = fileLIST[i]
            output = output + fileLIST[i][0].name +'\t'+fileLIST[i][1] + '\n';}

    window.open("data:text/json;charset=utf-8," + escape(output));//should create file
    display();  }

Eu estou usando o Chrome como meu navegador. Também eu preferiria resposta JS ou HTML5.

Agradeço antecipadamente

questionAnswers(4)

yourAnswerToTheQuestion