updating app.js and core.js