[BUGFIX beta] Use the jQuery polyfill for Node.prototype.contains
rather than playing whackamole with browsers