Sjquery is a project mainly written in JavaScript, it's free.
server-side jquery for rendering AJAX html pages
Incoming requests are provided with document and jquery instances. The document is renderered when sending the response, along with intact jquery handlers.