Added EventTarget methods (improved work as a polyfill)