This is an extremely common and easily reproducible task with ChatGPT. You dont believe that it can translate between Python JS? There are hundreds of examples of ppl doing this. Go try it for yourself