Not a shellscript, but javascript. Fixed comment syntax.
Debugging and adding functionality to save user changes.