Please don't ever use loops :-) `Object.keys(form.fields).forEach(function (fieldName) { … })` would be much better.