alert error added to app.js