save.js fixed