router.js config, refactor html templates