You can move properties is*to a sub-object to isolate them, and iterate over the properties of a sub-object
item.is={A:'aClass', C:'cClass'};
...
arrayofElements: function(item) {
var result = [];
for (p in item.is) {
result.push(new Div(item.is[p], labels[p]));
}
return result;
},
The values in item.iscan be classes (as shown), or the values in item.iscan be objects with a property class, or you could use the name of the property pas an index in another object to get the classes. This largely depends on what it represents itemand what the element classes are most closely related to.