Some versions of Firefox do not have addEventListener etc on Node.prototype.

Use document.addEventListener instead as the base.
Merge pull request #62 from arv/add-event-listener-firefox

Some versions of Firefox do not have addEventListener etc on Node.prototype.