re-write javascript array
First of all I think you meant:

a = ["a","1","one"]; // instead of [a, 1, one]


I handle these rare kind of issues as follow:


Open your browser (the following code is tested against Chrome)
Open the JavaScript console [Control -Shift -J (Chrome:Windows/Linux)]
Copy/paste your own code into the console


and then paste the following code

copy('abcde'.split('').map(function(varName){
return 'var ' + varName + ' = ' + JSON.stringify(window[varName])+';';
}).join('\n'));


If your variable names are more than 1 character use this code instead: (of course the following code won't work with the file example you specified, I changed the variable names for demonstration purpose)

copy(['var1', 'myVar2', 'blablabla'].map(function(varName){
return varName + ' = ' + JSON.stringify(window[varName])+';';
}).join('\n'));



Hit enter


the above code will copy the following JavaScript code into your clipboard:

a = ["a","1","one"];
b = ["b","2","two"];
c = ["c","3","three"];
d = ["d","4","four"];
e = ["e","5","five"];


Paste it into your file, save it and that's all!