Browser compatibility improvements:
- Now correctly only implementing the `nextElementSibling` and `previousElementSibling` properties on the CharacterData and DocumentType interfaces
- Now using feature-detection instead of IE9-detection
- Lots of code compression
Added guards for undefined inputs to $.text() and HTMLElement#addClass().