Better fix for 'missing reference to e' bug in DOM.init