JS to calculate height of metadata sidebar