Moved IE body class assignment to script.js; improved cropped thumbnail calculations in IE