updating js file for subscribe/unsubscribe