code: function construct(constructor, args) {
              var dynamicClass = function () {
                  return new (constructor.bind.apply(constructor, [void 0].concat(args)))();
              };
              dynamicClass.prototype = constructor.prototype;
              return new dynamicClass();
          }
docs: a utility function to generate instances of a class