* Expose constraints attribute in UI

Linked to issue #124 
Does this `else` case need to exist? If the attributes don't contain "constraints", `model.constraints` could remain undefined.