update to latest js apiclient