js sdk fix