minor cleanup to app.js
remove flask dep in remote service