Legend's innerText property does not exist in firefox, changing it.