fixed index.html to work with the new autoSave parameter