インスタンスのアソシエーション

var Profile = function(name) {
  this.name = name
  this.associate_profile
  this.sayName = function() {
    console.log(this.name)
  }

  this.associate = function() {
    this.associate_profile.sayName()
  }
}

var profile1 = new Profile("test1")
var profile2 = new Profile("test2")

profile1.associate_profile = profile2
profile1.associate();