created new Generator Class for eventHandler.js