The client does use javascript. Install the @hapi/nes in your frontend and make sure you import it like this import Nes from "@hapi/nes/lib/client and it will work
import Nes from "@hapi/nes/lib/client