updated js apiclient to latest