Could you not just create the array here?
```JavaScript
params = [
  ['netid', nId],
  ['cookieName', cookieName]
]
```