2' + encodeURIComponent(files[i]) + '%22';
                }
                query += '%5D';
            }
            query += '%7D';

            const preview = document.getElementById("preview");
            preview.src = './'
                + query
                + '&embed'
                + (mapbox_token ? '&token='+mapbox_token : '')
                + (mapbox_style ? '&mapbox-style='+mapbox_style : '')
                + (source != "osm" ? '&source='+source : '')
                + (running ? '&runni