Added json.js file and more functions.