app.js adaptation on cloudcontrol