ImageCloud is a project mainly written in JavaScript, it's free.
An Image Cloud to display a preview of a photo album
sample use:
$('#imageCloud').imageCloud({url:'getAlbumThumbs.php'});