Fixed some bugs and updated the JS SDKs.