Added router.js

Created a router.