code: function construct(constructor, args) {
              var c = function () {
                  return constructor.apply(this, args);
              };
              c.prototype = constructor.prototype;
              return new c();
          }
docs: a utility function to generate instances of a class