Slight tweaks to make generic node-style events available to browsers