This was my immediate thought. Just because Airflow is written in Python doesn't mean the tasks you're running need to be in Python.
Separate the concerns: migrate the task orchestration to Airflow (or whatever) while keeping the actual Javascript task code largely unchanged.