updated initBaseLayers to use underscore