Upgrading the SDK for JavaScript from Version 1