fix createUser for js sdk