Remove dependency on main.js and two views
Edit router.js