Fix the app.js file to allow for the transmission of chunk data to the client

Let me know how it goes.