Add feature detect for Event listeners
Added MIT licence as advised by @patrickkettner