Added NodeJS api methods for event handling