re-formated app.js