Update app.js

var to int