modify app.js to use relative uri to connect to rest service