After trying out several HTML5/JS game libraries, I'm pretty sure that Phaser is the best one for 2D games. It has frequent updates, great documentation and an awesome community support, too. One can learn a tremendous amount of game development techniques just be reading the source code of Phaser.