The json2.js file is taken from https://github.com/douglascrockford/JSON-js 