plese use "var" to define local variables:

for (var iAux = 0; iAux <= objects[0].attributes.length - 1; iAux++)

or define the variable in the top of the function