Either you’re reinventing your own wheel or you’re planning a trip to Mars.
And yes, there’s a COBOL-to JS option.
This is important and also fun. Nifty samples to play with.
Here’s the link: