Hello,
In Success event for service you can save "data" variable to "window.localSavedArrayFromResponse":
precodewindow.localSavedArrayFromResponse = data;/code/pre
So in any other JS-code on current screen you can access variable "window.localSavedArrayFromResponse". This variable is saved in global JS-scope for screen.
Please note, if you want to work with this data somewhere on other screen is better idea to use for saving data localStorage-object. So your code will be looks something like this:
precodelocalStorage.setItem( "localSavedArrayFromResponse", JSON.stringify( data ) );/code/pre
And on other screen you can access data as precodevar data = JSON.parse( localStorage.getItem( "localSavedArrayFromResponse" ) );/code/pre
In both cases you can rename variable.