This line will raise an error if neither mozIccManager nor mozMobileConnection is defined. Please use something like:
```javascript
  var icc = navigator.mozIccManager;
  if (!icc && navigator.mozMobileConnection) { // old API?
    icc = navigator.mozMobileConnection.icc;
  }
```