initial version of router.js complete