update app.js for add online