Automatic Image Montage with jQuery