dahuapp.editor.json.js modifications

modification of the way to save the slide index : directly in the json.