Added Karma tests and made it work with Travis
Don't use DOM4 yet. Maybe polyfill at some point? :)
Merge pull request #4 from Versal/karma-tests

Karma tests