or you could make this a filter:

```js
filters.statusName = function statusName(status) {
};
```