fixed private pub error, subscriptions js is only fired on appropriate pages