update jssdk to avoid duplicate function