adds index.js and router.js files