Added tests for HTML injection using jsdom.

Tests for onLoad and onChange don't work due to server environment not having HTMLElement object (needed for arrive.js). Need to look into browser-based testing - tricky because modules are using require() and browserify to load other modules. Option: compile all modules using browserify into a testing module?