added router.js and messed around with handler.js