Update app.js

Url method replaced