I think you are mixing objects and arrays. Objects have named keys, arrays have numeric keys. You can easily add to the array with .push():
var arr = [];
arr.push("something");
However, for the configuration object, since your variable name suggests that this is not very useful. You are better off using meaningful names for your parameters, for example:
var config = {
something: 'blah',
foo: 'bar'
};
You can also save the array in your object:
config.manyStuff = [];
for(...) {
manyStuff.push(...);
}