Updating the JS API