fix js function to set section *min* height