s=" + variables;

      search = new URLSearchParams(location.search);
      search.set('id', id);
      location.search = search.toString();
    }

    function getHashParams() {
      // Retrieve fragments (# params) from URL
      // All fragments are converted into a JSON object
      // To modify the GraphiQL termial, hash fragments in the URL need to be set,
      // this then adds text to the query, vairable and output text boxes in the UI.
      var hashParams = {};
      var matches,
          re_m