fixed both node.js and jmx.js initialization

more work on the DOM Event interface while trying to obtain a working XMLHttpRequestEventTarget implementation