just in case you or someone else is still looking for a solution, I have a library for that exactly. basically it allows you to port pinescript indicators to JS and run them on nodejs or browser.
https://github.com/alaa-eddine/PineTS