Call the function directly instead of `.click()`, if possible. Safari 5.1 and earlier does not support `.click()`.

If you can't call the function directly, use

```
if (element.click) {
    element.click();
} else {
    var event = document.createEvents('MouseEvents');
    event.initEvent('click', true, true);
    element.dispatchEvent(event);
}
```

If this is a common task, we could consider extending `Element.prototype` in compatiblity.js.