Move script tags to footer for perfomance optimization.
Refactor; set bar chart's height on page load.

Since there are only two bars we know how tall the parent svg should be.