Fixed body scrolling issues

This issue existed since we introduced the sidebar in 4ea258.

When the content's height is low and doesn't cause any scrolling, it's
necessary to dynamically calculate the sidebar's height using JavaScript
(sigh) in order to stretch it down to the footer.
Be explicit when doing comparisons
Cleanup: move import to top, initialize dictionary with value
Align styling