Add pubsub:publish event for inter-script communication