[js] update script js

Can't be tested because API is not available