//load URL parameters
function getURLParameter(name) {
  return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null;
}

function updateURLParameters(datahash) {
  if (window.location.search.includes(datahash)) return;
  
  var newurl = window.location.pathname+"?data="+datahash;
  window.history.pushState("", "", newurl);
}

@@ -240,16 +240,28 @@
 hash) %7B%0A
+  var hash;%0A
   if (wi
@@ -303,17 +303,73 @@
 ash)
-) return;
+ and window.location.hash) %7B%0A    hash = window.location.hash;%0A  %7D
 %0A  %0A
@@ -471,10 +471,95 @@
 ewurl);%0A
+  %0A  if (hash) %7B%0A    newurl += hash;%0A    window.history.pushState(%22%22,%22%22,newurl);%0A  %7D%0A
 %7D%0A

Update site.js