function c2c () { this.containers = array(); this.contents = array(); this.addContainer = function(type, container) { this.containers[type] = container; } this.addContent = function(type, content) { this.content[type] = content; } this.instance = function (container, content, param) { var contain = new this.containers[container].newContainer(); var content = this.contents[content].newContent(param, contain); } }