update main.js, app.js and router.js.