Fixed code that will not compile as AutoSave was added as a JSON property but used as a function in the code