Extracting router.js