I'd prefer to do in anther way to keep this test html compatible when W3C DeviceCapabilities spec accepted as RED.

```
var system =  navigator.system || xwalk.experimental.system;
...

system.getCPUInfo();
system.getMemoryInfo();
...
```