[core][js] helpers: funcOutput as private attribute