add a new js file in order to capture data from EventEmitter.
fix issue with 'let'.