update to latest js api client