added json.js and jsonfunction