So you've some kind of problem with the implementation language? Because then you can say the same about any other. "Does it need to be written in Python?" "Does it need to be written in Rust?" What's even the point?
re-read what being discussed, someone said to display epub you need to able to render HTML, I said "but it does NOT need to RUN js". And then you were the person who brought up implementation language which happens to be js, which is irrelevant to the point everyone was making.
The OG comment mentions JS codebase being bundled to a browser engine. Then it's mentioned that it makes sense to do that. And then you specifically asked "does it need a js engine though?". For this specific app, the answer is yes. You cannot open an epub directly on browser and you need to parse it to do that. That somehow for this app is JS. If your question was whether epubs may contain JS then it's wrongly posed.