Feature #5741: [JSB] Make gui extension classes extendable via ctor