Add documentation to the subscription.js file