Crafty (GitHub | Wiki | Modules) is a modern component and event based framework for javascript games that targets DOM and canvas.
When posting code examples - either for receiving help or demonstrating a bug - please open this jsfiddle, change the code, click fork and copy the generated link.
If your post isn't showing up right away it is because it is pending manual SPAM-testing. Please be patient :-)