Refactoring JS code removing code in DOMEvent and DOMEventListener and copying to Normal classes, same like Java code
Capture error to listener in page load sync