adds pubsub js file