Adding require('url') to router.js