added some code into the json.js.
working on the couchapp