bugfix for: "save-as dialogue appeared for only the first csv/geojson file exported"; v/
moved loadend handler  code for data layers to function loadendOfData();