There is nothing stopping you from making a web browser based JavaScript game right now that you can throw up on a basic webpage and share a link for people to go play instantly. You just don’t want to!
I don’t understand the downvoted, you really can just make a pure JavaScript game. Pick up an easy rendering library like PixiJS and just start making a game loop, etc.