Did you want to create the mapping we talked about, to avoid this getattr? Something like:

```javascript
for (mimetype in display_order) {
    var append = this.append_map[mimetype];
    if (append !== undefined) {
        return append(json[mimetype], md, element);
    }
}
```