Updated app.js to include an alert