Canvas Query
Chainable canvas API for gamedevelopers
var layer = cq()
.fillStyle("#ff0000")
.fillRect(0, 0, 32, 32);
Documentation
Framework
If you are looking for a simple game framework that will handle mouse, keyboard and basic structure see playgroundjs