^&#]*)|&|#|$)")
      var results = regex.exec(url);
      if (!results) return null;
      if (!results[2]) return '';
      return decodeURIComponent(results[2].replace(/\+/g, " "));
    }

    var requested = getParameterByName('href');
    if (requested && window.location.hash === '#retry') {
      window.location = requested
    } else {
      window.location.hash = 'retry'
      Smooch.init({
        appToken: '5ej1e29vtiftx5or7y0ukcoi6',
        properties: {
          'page': window.location.href,
 