Node/JavaScript library for collecting multiple events into a single one