Update app.js

attempt to store the data in server