social sdk js class