[js] don't generate constructor function for KAbstractImpl (see #2350)