JQuery.wall is a project mainly written in JavaScript, it's free.
Wallpaper gallery plugin for jQuery