Add more stats to the map

The length of the bars are now relative to all years, rather than just
the current year.

Also did a fair amount of JS code cleanup.