arr1 is defined only within the scope of the GlobalObject function. If you want to access it globally, you need to have the GlobalObject function return a reference to it. Read up on functional scope in javascript for a better understanding of this. Currently your function returns an empty object. You want to do something like this:
...
return {
"array1": arr1,
"array2": arr2,
"array3": arr3,
"array4": arr4
};
(though you can maintain the privacy of those arrays by not returning them)
The GlobalObject will maintain arr1's reference and value until you manually de-reference it (setting it to null). Javascript's garbage collector only deletes objects that aren't needed anymore.
Your current code shows no memory leaks. Watch out for circular references and closures.