Added json2.js

Fixes #18