code: function merge(obj1, obj2) {
    var res = {}, attrname;
  
    for (attrname in obj1) {
      res[attrname] = obj1[attrname];
    }
    for (attrname in obj2) {
      res[attrname] = obj2[attrname];
    }
    return res;
  }
docs: Merges accesible properties in two objects.
  obj2 takes precedence when common properties are found
  
  @param {Object} obj1
  @param {Object} obj2
  @returns {{}} The merged, new, object