Update appsService.js