Use Node.js EventEmitter syntax on both platforms