A few alterations to fix issues found in IE8.
- Misuse of $.trim()
- Tests relied on HTML5 support thus I changed the IE8 tests and made
  the default test more robust by looking for classes rather than
  markup.