updating WTO javascript