Event Pubsub for Javascript will work in node js or browser