maybe you’re out of luck here.
from js, you can only use functions from the whitelist here –
and there is no face module (which also would require contrib modules)
you can try to edit the whitelist, add some modules / classes, wrangle the cmake options, and build it from src
(well, good luck, imo that’s difficult)
[edit] can you please explain, what you want to do with it ?
maybe we can find some alternative dnn for this ,…