Your code is too complecated for no reason. If you want a save/load system and you want to (for example) save the values in the array and then reload them on the next launch then you need to :
1) from webstorage : set local key --> key:"your key" value:<name of array object>.asjson
2)on start of layout : <array object> >load: "your key"
I Hope its simple to understand, ask me anytime for further instructions.