added eventStore.js