Adding the basic ajax logic to the app.js file