Only use jsdom private apis when available.

Introduced in fe7d2a784d6c649c35ea74f0c82282467c882997.

This reduces the likelihood of supporting other dom implementations.

See #76, #87.