setting height of blog posts with js