Added content caching functionality to app.js file