if (Array.isArray(model.jsonModel.services))
{
    model.jsonModel.services.push('jsconsole/backend/LegacyRepositoryConsoleBackend')
}
if (Array.isArray(model.jsonModel.services))
{
    model.jsonModel.services.push('jsconsole-nashorn/backend/RepositoryWebScriptBackend');
}
Correct backend reference