modify init method in app.js