Update corresponding JS file