Adjust some methods; put a console.log call into successfulSave in the js