added compatibility for node.js events in actions...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>