Add app.js, cleaner main code.