Jiffy is a project mainly written in JavaScript, it's free.
2D component-based game library for javascript
This library isn't ready to be used by anyone, but you're free to try.
See demo-*.html for some examples.