moving app.js to main folder