Add legend button content through innerHTML