docs: function extend( def, ext ) {
    var out = JSON.parse( JSON.stringify( def ) );
    if( typeof ext === 'undefined' ) return out;
  
    var key, val;
    for( key in ext ) {
      out[key] = val;
    }
    return out;
  }