Update app.js

remove some old code