Base router for your JS framework or frameworkless app