Setup router.js with routes and functions