added min-height javascript code