Adding some extra logic for when the save button is clicked that alerts the user if they are trying to save to a .json file and also adds a mask and success/failure handlers for the store.sync() call.