update js sdk generate_token attributes