[BUGFIX beta] Use the jQuery polyfill for Node.prototype.contains
rather than playing whackamole with browsers
Merge pull request #5403 from bradleypriest/node-contains

[BUGFIX beta] Use the jQuery polyfill for Node.prototype.contains