save js changes