I added this here:
```javascript
if (!('mozMobileConnections' in navigator)) {
  navigator.mozMobileConnections = null;
}
```

Otherwise you can't run this file alone.