A couple of fixes (mostly for IE)

And a small ui correction, using h4 instead of a fixed
font-size (17px) in legend