corrected syntax of 'ko.toJSON' function