make corresponding js change