showing how to used the array of scene objects

declairing a global variable

var sceneObjects = [];

i'm able to store the objects in var format while creating the object
from anywhere(even a loop)

sceneObjects.push(sphere);

and then pull later from another scripts if i need it

for (i = 0; i < sceneObjects.length-1; i++) {
sceneObjects[i].rotation.y += 5 * ((delta*0.01) * Math.PI / 180);
}

btw. the sceneObjects.length-1 is because in this test i don't want the
square box moving and it's the last object. this is strictly for
testing.