Update and rename app.js to core.js