Adding scrolling to sidebar

JS to calculate appropriate, and then set, the height of metadata sidebar