Please keep the coding style
```
system.getMemoryInfo()
    .then(function(memory) {
```