Named Sub Qbjects

Using Celigo, I’m trying to create a transform that’s coded in Javascript. The input data has multiple records that I’m attempting to reformat. To that effect, I’ve created two arrays. One is called LOADS which will contain all of the records and a second per record array called load. I’m trying to use Loads.push(load) to create an array where the smaller array object is called load. Instead of getting load as the name of the array though I’m just getting two unnamed arrays.

[
  {
    load:[
      {
        "Depositorcode":"VEN02",
        ...
      },
      {
        "Depositorcode":"BAS18",
        ...
      }
    ]
  }
]

What I’m getting instead is

[
  {
    [
      {
        "Depositorcode":"VEN02"
      },
      {
        "Depositorcode":"BAS18"
      }
    ]
  }
]

What am I missing?