minimal pubsub js