separate core js to app.js