Translated until caption lib/router.js