Explecitly set scaled deminsions of image for detection by JavaScript
Move all JS to a seprate file, allow overriding
Detect and set heights based on tallest images
Remove buffer division
Restyle