code: function(uri) {
          if (this.defined(uri)) {
              history.pushState(null, null, uri);
              var event = new CustomEvent('onRouteChange');
              event.route = uri;
              document.dispatchEvent(event, uri);
          } else {
              console.error('Route "' + uri + '" is not defined.');
              return false;
          }
      }
docs: Redirect to new route
  @param uri
  @returns {boolean}