Validate the structure of Javascript objects using semantic templates. Written as an underscore mixin.