updated node example and readme to use event emitter