updating the JS SDK