Update app.js

int to var