It doesn't appear that any other button definition is actually using attributes (if it was it would have to do the same thing).

You could just change the order of attrib, val in the template and avoid having to make this utility function.
```
    <% _.each(button.attributes, function (attrib, val) 
```