docs: function mergeObjects(obj1, obj2) {
  
    // Clone object
    var result = JSON.parse(JSON.stringify(obj1));
  
    for (var p in obj2) {
  
      if ( obj2[p].constructor === Object ) {
  
        if (result[p]) {
  
  	result[p] = mergeObjects(result[p], obj2[p]);
  
  	continue;
        }
      } 
  
      result[p] = obj2[p];
    }
  
    return result;
  }