Here is a little one-level game I did in HTML5 course on edX.
https://paiv.github.io/html5.2x.game/
Everything is hand-crafted, no libs used, in a single (hopefully readable) JavaScript file.
The game engine implements
HTML5 features:
Minimized with