You don't need to run a dedicated webserver, but you do need some sort of layer that parses the html and JS and executes the JS. That is, effectively, a web server.
That is not appropriate for all sorts of software. For a lot, though, sure, that can work. It's just not a universal solution.