http://lessmilk.com/ created some simple games using a framework (Phaser). Cutting out Phaser and adding back in just enough code to make the games work is fun and instructive.