commit JS changes in the appropriate spots