Added javascript version of pubsub article