Yes, thanks to HTML5 <canvas> element. There are even "game engines", for JavaScript (Such as: kaboom.js, and THREE.js) I made my game using only a canvas, and HTML + CSS for the UIs. I think it is a good combo. (fast graphics, with you controlling EVERYTHING, and beautiful ui, using CSS)