Should be able to do similar with MicroQuickJS or maybe just QuickJS...