Oops. I think it's `$.each(fields, function(index, field) {`