Added CSS rule to render div#legend correctly in IE and removed trailing commas from JS dictionaries for IE compatibility