Extracting router into regexp_router.js