created functionality in javascript to test json with save button and serverside response in SpreadsheetController