    return s.replace(/~and~/g, '&')
          }).join('?');
          window.history.replaceState(null, null,
              l.pathname.slice(0, -1) + decoded + l.hash
          );
        }
      }(window.location)) 
    </script>
  </head>

  <body>
    <div id="root"></div>
  </body>

</html>
