Just in case, you should wrap the following method in an existence test for window.ActiveXObject :
```coffeescript
if xmlDocument = new window.ActiveXObject? "Microsoft.XMLDOM"
    # ...
```