Removed pubsub-js dependency and started using a native implementation