app.get('/foo', function(req, res ){
db.getSubscribers().map(function(item) {
return portCheck.checkOpen(item.username).then(function(state) {
return { username: item.username, state: state };
});
}).then(function(arr) {
res.render('register.ejs', { subscribers: arr });
});
});