Cross browser DOMContentLoaded event emitter