Fixed JavaScript
Fixed display of thumbnails
Formatting