How to retrieve active jobs from javascript?

Hello,
for a project I want to retrieve the jobs in a javascript application. I googled and found out that I have to use a elasticsearch exporter for this but I dont know how. I tried a few queries but didnt find something where I get all current active jobs. Maybe someone already did something like this and can help me. Thanks in advance.

When you say “all current active jobs” - do you mean “all jobs that have been activated by a worker, and have not yet reached their activation timeout”?