Added JS to automatically add the proper thumbnail classes on homepage load.