JS tweaks: proper variable naming, correct inline docs regarding height calculation; adjust expanded height. props atimmer