I also wanted to get into it and took a look into phaser.io but I only got to simple examples. :-)
Maybe you can check this article (from 13 Dec 2018) to have some overview: code.tutsplus.com/articles/javascript-game-engine…
Collection of JS game engines on github: github.com/collections/javascript-game-engines