broke main.js into router.js