[js] don't generate constructor function for KAbstractImpl