modified router.js and server.js, pg. 28