IE9 compatability

Changing how prototype is copied from Dialog/Emitter, so it work in IE9

https://github.com/component/emitter/issues/17