added js to automatically adjust content div height