Javascript Leaflet Marker Not Displaying In Certain Contexts Stack

Javascript Leaflet Marker Not Displaying In Certain Contexts Stack