Remove receivedEvent from index.js