this.addScript(function plugIn(widget) {
if (!widget.plug) return;
ownPropertyNames(plug).forEach(function (prop) {
var stub = this.methodStubFor(widget, prop);
this.addScript(eval('(' + stub.methodString + ')'))
if (plug[prop] == 'output')
connect(widget, prop, this, stub.methodName)
if (!this[stub.widgetName]) console.log('adding this.' + stub
.widgetName);
this[stub.widgetName] = widget;