code: function copy(from, to) {
        var name;
        for (name in from) {
          if (from.hasOwnProperty(name)) {
            to[name] = from[name];
          }
        }
      }
docs: Helper function to copy properties from one object to the other.