remove eventemitter dependency, replaced by dom events