updated js that controls sidebar height.