docs: function flattenFields(fields) {
  	const fieldsObj = {};
  	fields.forEach(function(field) {
  		if (!fields.hasOwnProperty(field.name)) {
  			fieldsObj[field.name] = field.value;
  		}
  	});
  	return fieldsObj;
  }