You probably can't.
There's a few people working on something like that, but it's quite a big project. Basically boils down to rewriting all of Quest in Javascript. You could try using QuestJS, but there's still a lot of features that don't work properly.