Got a bit further with embind and pcrecpp. Still not quite there.
Rename js file, add comment, clean up