TripDub is a project mainly written in JavaScript, it's free.
XULRunner app with integrated web server and DB to allow offline web apps