Added resource fetching code to mesh.js and app.js.