-var getAttrElement = function(attr) {
- var toret = $('<div>');
- toret.append(templates.string({name: attr.name, value: attr.value}));
+var getAttrElement = function(attrName, attr) {
+ var toret = $('<div>');
+ toret.append(templates.string({name: attrName, value: attr.value}));