Creating global markerLayer var declaration

there was an implicit declaration before