added comments to router.js