modified dependencies and added null check in app.js