Update app.js

fixed the 500 error mates