I'm able to save now, in the example I'm using the Documents folder:
The problem now became how can I load this saved file into documents..
I was thinking about a logic to check if the file exists, if it exists it loads it into the Array, if it doesn't exist, it uses AJAX and loads the "Clean Array"
However, I don't know which expression to use, AJAX would load the latest data, but the filesystem doesn't have that choice.