shifted app.js to lib/main.js