[JanrainSharing plugin] using constructor from the require's callback argument instead of global var