created router.js; updated server.js, index.js