Update app.js

add some changes by jemo