Changed template for legend

https://developers.google.com/fusiontables/docs/samples/legend

But still buggy.
fixed legend