ARK-Gallery is a project mainly written in JavaScript, it's free.
Image Gallery
ARK Gallery Image Gallery, a plugin for jQuery.