Changed .attr('offsetHeight') to [0].offsetHeight

Using the former would give men undefined, and therefore NaN when doing calculations.

The latter uses the jQuery objects returned element and the native DOM offsetHeight property. No need to use the jQuery .attr() in this instance.

Now my bottom container is fixed.