File uploading changes to app.js