added router.js and dependencies