Reduce legend container scope to instance

The legendEl variable was not scoped to the instance, so both map
map buttons targeted the most recent value.
Merge pull request #264 from mmcfarland/fix/263/legend-toggle-target

Reduce legend container scope to instance