Update app.js

code to change status