move app2.js file into index.js