Fixed code style, added test

Condensed logic, changed toEqual to toBe

Fixed jshint errors

Tweaked test, fixed error

Changed conditional in spec, added remove class spec

Fixed syntax error

Added conditional to exclude comment nodes

Added check for getAttribute

Access node element directly for nodeType

Switch to using element.className first

Removed unnecessarily strict check

Added back test for nodeType

Use getAttribute conditionally

Refactored based on code review

Removed svg unit tests

Fix unit tests

Readded SVG test, commented out instead

Readd another SVG test, commented it out instead

Remove whitespace