Is there already something for the other way? Even only partial?
Do you mean JavaScript to Pascal? As in creating Pascal interface units for JavaScript libraries automatically?
Sorry, I don't know anything about that. I did the Mapbox interface unit manually, although certainly even a partial converter would be a more foolproof way to start. But surely it would be a huge amount of work to create a converter like that.