clearn up app.js code formatting