saves updates to scripts.js