Converted to EventTarget for message event (also with dummy listener)
Added readyState attribute