remove debug console.log, fix comment
use the baselayerchange event parameter instead of testing to see if a layer is added to the map