responsive content height using js, css has failed badly